package com.itsitio.dbimporter.dao.base;

import java.io.Serializable;
import java.util.List;

import org.springframework.dao.DataAccessException;

public interface Dao<T> {

	public void eliminar(List<T> objetos) throws DataAccessException;

	public void eliminar(T objeto) throws DataAccessException;

	public void guardar(List<T> objetos) throws DataAccessException;

	public void guardar(T objeto) throws DataAccessException;

	public T obtener(Serializable id) throws DataAccessException;

	public List<T> obtenerTodos() throws DataAccessException;
	
	public List<T> obtenerGrupo(String idProperty, List<? extends Serializable> ids) throws DataAccessException;

	public void flush();
}